package com.jiayinlending.jiayindai.activity.mine.information;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.jiayinlending.jiayindai.R;
import com.jiayinlending.jiayindai.activity.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SecuritySettingActivity extends BaseActivity {
    @Bind(R.id.tv_modify_login_password)
    TextView tvModifyLoginPassword;
    @Bind(R.id.tv_modify_transaction_password)
    TextView tvModifyTransactionPassword;
    @Bind(R.id.tv_change_phone)
    TextView tvChangePhone;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
        getToolbarTitle().setText("安全设置");
        getSubTitle().setText("");
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_security_setting;
    }


    @OnClick({R.id.tv_modify_login_password, R.id.tv_modify_transaction_password, R.id.tv_change_phone})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_modify_login_password:
                startActivity(new Intent(this,ModifyLoginPasswordActivity.class));
                break;
            case R.id.tv_modify_transaction_password:
                startActivity(new Intent(this, ModifyTransactionActivity.class));
                break;
            case R.id.tv_change_phone:
                startActivity(new Intent(this,ChangePhoneActivity.class));
                break;
        }
    }
}
